<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ page session="false"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>员工注册</title>
 <jsp:include page="../restab.jsp" flush="true" />
</head>
<body>
 <jsp:include page="../header.jsp" flush="true" />
 <div id="body">
    <H1>
        员工注册
    </H1>
    <form:form action="register" commandName="employeeDto" modelattribute="employeeDto" method="post">
    <label for="nameInput"> 名称: </label>
    <form:input path="empName" id="nameInput"></form:input>
    <form:errors path="empName" cssclass="error"></form:errors>
    <br />
     <label for="birInput"> 雇佣日期: </label>
    <form:input path="hireDate" id="birInput"></form:input>
    <form:errors path="hireDate" cssclass="error"></form:errors>
    <br />
    <label for="salInput">薪水: </label>
    <form:input path="sal" id="salInput"></form:input>
    <form:errors path="sal" cssclass="error"></form:errors>
    <br />
     
    <label for="commonRateInput"> common-rate: </label>
    <form:input path="commonRate" id="commonRateInput"></form:input>
    <form:errors path="commonRate" cssclass="error"></form:errors>
    <br />
    
    <label for="mgrIdInput"> common-rate: </label>
    <form:input path="mgrId" id="mgrIdInput"></form:input>
    <form:errors path="mgrId" cssclass="error"></form:errors>
    <br />
     
    <label for="passwordInput">密码: </label>
    <form:input path="password" id="passwordInput"></form:input>
    <form:errors path="password" cssclass="error"></form:errors>
    <br />
    
    <input type="submit" value="保存" /></input>
    </form:form>
    <br>
   
    </div>
</body>
</html>